$("#commontator-thread-<%= @commontator_thread.id %>-subscription").html("<%= escape_javascript(
  render partial: 'link', locals: { thread: @commontator_thread, user: @commontator_user }
) %>");

<%= javascript_proc %>
